#define _CRT_SECURE_NO_WARNINGS 1
#include<stdio.h>
#include<stdlib.h>
#include<string.h>
typedef struct
{
	int one;
	int two;
}people;

int main()
{
	char str[21];
	people hua;
	hua.one = hua.two = 0;
	people dui;
	dui.one = dui.two = 0;
	int arr1[1000] = { 0 };
	int arr2[1000] = { 0 };
	int k = 0;
	int j = 0;
	int arr3[1000] = { 0 };
	int arr4[1000] = { 0 };
	while (scanf("%s", str) != EOF)
	{
		int len = strlen(str);
		int i = 0;
		while (len--)
		{
			if (str[i] == 'W')
			{
				hua.one++;

				if (hua.one == 11)
				{
					arr1[k] = hua.one;
					arr2[k++] = dui.one;
					//printf("%d:%d\n", hua.one, dui.one);
					hua.one = dui.one = 0;
				}
				hua.two++;
				if (hua.two == 21)
				{
					arr3[j] = hua.two;
					arr4[j++] = dui.two;
					//printf("%d:%d\n", hua.two, dui.two);
					hua.two = dui.two = 0;
				}
			}
			else if (str[i] == 'L')
			{
				dui.one++;
				if (dui.one == 11)
				{
					arr1[k] = hua.one;
					arr2[k++] = dui.one;
					//printf("%d:%d\n", hua.one, dui.one);
					hua.one = dui.one = 0;
				}
				dui.two++;
				if (dui.two == 21)
				{
					arr3[j] = hua.two;
					arr4[j++] = dui.two;
					//printf("%d:%d\n", hua.two, dui.two);
					hua.two = dui.two = 0;
				}
			}
			else if (str[i] == 'E')
			{
				goto line1;
			}
			i++;
		}
	}


line1:;
	int i = 0;
	for (i = 0; i < k; i++)
	{
		//if (arr1[i] != 0 || arr2[i] != 0)
			printf("%d:%d\n", arr1[i], arr2[i]);

	}
	if (hua.one != 0 || dui.one != 0)
	{
		printf("%d:%d\n", hua.one, dui.one);
	}
	printf("\n");
	for (i = 0; i < j; i++)
	{
		//if (arr3[i] != 0 || arr4[i] != 0)
			printf("%d:%d\n", arr3[i], arr4[i]);
	}
	if (hua.two != 0 || dui.two != 0)
	{
		printf("%d:%d\n", hua.two, dui.two);
	}
	return 0;
}